Tootsville::Infinity-Ping

Function

Infinity-Ping names a function, with lambda list (D USER RECIPIENT/S):

Send a ping to the server to get back a pong.

Lisp PING = JSON ping

This also updates the user's last-active timestamp.

Usage

{ [ pingStarted: TIMESTAMP ] } 

Examples

{ pingStarted: 1589849202000 }

{}

200 OK

The response packet contains literally

from
"ping"
status
true
ping
"pong"
pingStarted
see below
serverTime
The server's time as a Unix-epoch timestamp in milliseconds.

If the user sends a pingStarted value, it is replied back unchanged; otherwise, pingStarted is replied with the server-time as well.

File

Defined in file src/infinity/legacy-commands.lisp.